package com.attilax.web;

import java.io.IOException;
import java.io.OutputStream;

import javax.servlet.ServletOutputStream;

 

public class AtiServletOutputStream extends ServletOutputStream {
	OutputStream os;
	public AtiServletOutputStream(OutputStream output) {
	this.os=output;
	}

	@Override
	public void write(int arg0) throws IOException {
		 os.write(arg0);
		
	}
	
	public void write(byte[] arg0) throws IOException {
		 os.write(arg0);
		
	}
	
	public void write(byte[] arg0,int startIdx,int len) throws IOException {
		 os.write(arg0,startIdx,len);
		
	}
	
	
	
	
	public void flush()
	{
		try {
			os.flush();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			throw new RuntimeException(e);
		}
	}

	public void wirteNflushHead() {
		 
		
	}

}
